//
//  UIImage+Extension.swift
//  GLWeiBo
//
//  Created by mac on 16/5/9.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit

extension UIImage {
    class func GL_singleImage(color: UIColor) ->UIImage {
        UIGraphicsBeginImageContextWithOptions(CGSizeMake(1, 1), false, UIScreen.mainScreen().scale)
        color.setFill()
        UIRectFill(CGRectMake(0, 0, 1, 1))
        let result = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        return result
    }
}